package me.springboot.mybatis.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.alibaba.fastjson.annotation.JSONField;

@Table(name = "t_user")
public class User {
	@Id
	@Column(name = "u_id")
	private Integer uId;

	@Column(name = "user_name")
	private String userName;

	@JSONField(serialize = false, deserialize = false)
	private String password;

	private String email;

	private String remarks;

	@JSONField(format = "yyyy-MM-dd HH:mm")
	@Column(name = "create_date")
	private Date createDate;

	@JSONField(serialize = false, deserialize = false)
	@Column(name = "update_date")
	private Date updateDate;

	/**
	 * @return u_id
	 */
	public Integer getuId() {
		return uId;
	}

	/**
	 * @param uId
	 */
	public void setuId(Integer uId) {
		this.uId = uId;
	}

	/**
	 * @return user_name
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return remarks
	 */
	public String getRemarks() {
		return remarks;
	}

	/**
	 * @param remarks
	 */
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	/**
	 * @return create_date
	 */
	public Date getCreateDate() {
		return createDate;
	}

	/**
	 * @param createDate
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	/**
	 * @return update_date
	 */
	public Date getUpdateDate() {
		return updateDate;
	}

	/**
	 * @param updateDate
	 */
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
}